package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 收藏对象 tb_favorite
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_favorite")
public class Favorite extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 用户ID */
    private Integer userId;

    /** 收藏项ID */
    private Integer itemId;

    /** 收藏类型：chef-厨师,dish-菜品 */
    private String type;
}